/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.ipo.mm.web.formbeans;

import java.util.Iterator;
import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;

/**
 *
 * @author Administrator
 */
public class ReportsBean extends org.apache.struts.action.ActionForm {
    
    private String reportName;
    private String reportType;

    
    private String idsInArray="";
    private int[] idsCollection;
    private int  id;
        private String submit;
    /**
     * @return
     */
    public String getReportName() {
        return reportName;
    }

    /**
     * @param string
     */
    public void setReportName(String string) {
        reportName = string;
    }

    

    /**
     *
     */
    public ReportsBean() {
        super();
        // TODO Auto-generated constructor stub
    }

    /**
     * @return the idsCollection
     */
    public int[] getIdsCollection() {
        return idsCollection;
    }

    /**
     * @param idsCollection the idsCollection to set
     */
    public void setIdsCollection(int[] idsCollection) {
        this.idsCollection = idsCollection;
        idsInArray="(";
        for (int i =0;i<idsCollection.length;i++) {
            idsInArray+=idsCollection[i]+",";
        }
        idsInArray+=")";
        idsInArray = idsInArray.replace(",)", ")");
    }

    /**
     * @return the id
     */
    public int getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * @return the submit
     */
    public String getSubmit() {
        return submit;
    }

    /**
     * @param submit the submit to set
     */
    public void setSubmit(String submit) {
        this.submit = submit;
    }

    /**
     * @return the idsInArray
     */
    public String getIdsInArray() {
        /*
         idsInArray="(";
        for (int i =0;i<idsCollection.length;i++) {
            idsInArray+=idsCollection.toString()+",";
        }
        idsInArray+=")";
        idsInArray.replace(",)", ")");
        */
        return idsInArray;
    }

    /**
     * @param idsInArray the idsInArray to set
     */
    public void setIdsInArray(String idsInArray) {
        this.idsInArray = idsInArray;
    }

    /**
     * @return the reportType
     */
    public String getReportType() {
        return reportType;
    }

    /**
     * @param reportType the reportType to set
     */
    public void setReportType(String newReportType) {
        this.reportType = newReportType;
    }

 
    
}
